package com.evl.common.persistence.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 
 * </p>
 *
 * @author yangliwei
 * @since 2017-06-14
 */
@TableName("main_order")
public class MainOrder extends Model<MainOrder> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	private Integer id;
	@TableField("main_order_no")
	private String mainOrderNo;
	@TableField("create_time")
	private Date createTime;
	@TableField("main_order_type")
	private Integer mainOrderType;
	@TableField("main_order_status")
	private Integer mainOrderStatus;
	private String contacts;
	@TableField("main_total_price")
	private Double mainTotalPrice;
	@TableField("main_order_discount")
	private Double mainOrderDiscount;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getMainOrderNo() {
		return mainOrderNo;
	}

	public void setMainOrderNo(String mainOrderNo) {
		this.mainOrderNo = mainOrderNo;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getMainOrderType() {
		return mainOrderType;
	}

	public void setMainOrderType(Integer mainOrderType) {
		this.mainOrderType = mainOrderType;
	}

	public Integer getMainOrderStatus() {
		return mainOrderStatus;
	}

	public void setMainOrderStatus(Integer mainOrderStatus) {
		this.mainOrderStatus = mainOrderStatus;
	}

	public String getContacts() {
		return contacts;
	}

	public void setContacts(String contacts) {
		this.contacts = contacts;
	}

	public Double getMainTotalPrice() {
		return mainTotalPrice;
	}

	public void setMainTotalPrice(Double mainTotalPrice) {
		this.mainTotalPrice = mainTotalPrice;
	}

	public Double getMainOrderDiscount() {
		return mainOrderDiscount;
	}

	public void setMainOrderDiscount(Double mainOrderDiscount) {
		this.mainOrderDiscount = mainOrderDiscount;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
